package it.avantsoft.ls.gl.message;

import java.io.DataOutputStream;
import java.io.IOException;

public class DeadNieceABMessage extends ABActivityMessage {

    public DeadNieceABMessage(DataOutputStream out, String id) {
        super(out, id);
    }

    public boolean send() {
        boolean sent = false;

        try {
            writeByte(DEADNIECE);
            writeUTF(id);
            flush();
            sent = true;
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }

        return sent;

    }


    public String toString() {
        return "DeadNieceABMessage{" +
                "id = " + id +
                "}";
    }
}
